.class final Llt/noframe/gpsfarmguide/dialogs/MeasuresDialogs$9;
.super Ljava/lang/Object;
.source "MeasuresDialogs.java"

# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Llt/noframe/gpsfarmguide/dialogs/MeasuresDialogs;->chooseAction(Llt/noframe/gpsfarmguide/models/MeasuringModel;Llt/noframe/gpsfarmguide/dialogs/MeasuresDialogs$ActionCallback;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x8
    name = null
.end annotation


# instance fields
.field final synthetic val$callback:Llt/noframe/gpsfarmguide/dialogs/MeasuresDialogs$ActionCallback;

.field final synthetic val$fireAnalytics:Llt/noframe/gpsfarmguide/analytics/FireAnalytics;

.field final synthetic val$measuringModel:Llt/noframe/gpsfarmguide/models/MeasuringModel;


# direct methods
.method constructor <init>(Llt/noframe/gpsfarmguide/analytics/FireAnalytics;Llt/noframe/gpsfarmguide/dialogs/MeasuresDialogs$ActionCallback;Llt/noframe/gpsfarmguide/models/MeasuringModel;)V
    .locals 0

    .line 172
    iput-object p1, p0, Llt/noframe/gpsfarmguide/dialogs/MeasuresDialogs$9;->val$fireAnalytics:Llt/noframe/gpsfarmguide/analytics/FireAnalytics;

    iput-object p2, p0, Llt/noframe/gpsfarmguide/dialogs/MeasuresDialogs$9;->val$callback:Llt/noframe/gpsfarmguide/dialogs/MeasuresDialogs$ActionCallback;

    iput-object p3, p0, Llt/noframe/gpsfarmguide/dialogs/MeasuresDialogs$9;->val$measuringModel:Llt/noframe/gpsfarmguide/models/MeasuringModel;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/content/DialogInterface;I)V
    .locals 2

    if-eqz p2, :cond_3

    const/4 p1, 0x1

    if-eq p2, p1, :cond_2

    const/4 p1, 0x2

    const/4 v0, 0x3

    if-eq p2, p1, :cond_1

    if-eq p2, v0, :cond_0

    goto :goto_0

    .line 191
    :cond_0
    iget-object p1, p0, Llt/noframe/gpsfarmguide/dialogs/MeasuresDialogs$9;->val$fireAnalytics:Llt/noframe/gpsfarmguide/analytics/FireAnalytics;

    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/analytics/FireAnalytics;->sendFieldDelete()V

    .line 192
    new-instance p1, Llt/noframe/gpsfarmguide/dialogs/MeasuresDialogs$9$1;

    invoke-direct {p1, p0}, Llt/noframe/gpsfarmguide/dialogs/MeasuresDialogs$9$1;-><init>(Llt/noframe/gpsfarmguide/dialogs/MeasuresDialogs$9;)V

    invoke-static {p1}, Llt/noframe/gpsfarmguide/dialogs/MeasuresDialogs;->deleteMeasure(Landroid/content/DialogInterface$OnClickListener;)V

    goto :goto_0

    .line 185
    :cond_1
    iget-object p1, p0, Llt/noframe/gpsfarmguide/dialogs/MeasuresDialogs$9;->val$fireAnalytics:Llt/noframe/gpsfarmguide/analytics/FireAnalytics;

    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/analytics/FireAnalytics;->sendFieldInfomationEdit()V

    .line 186
    new-instance p1, Landroid/content/Intent;

    invoke-static {}, Llt/noframe/gpsfarmguide/App;->getContext()Landroid/content/Context;

    move-result-object p2

    const-class v1, Llt/noframe/gpsfarmguide/views/ActivitySave;

    invoke-direct {p1, p2, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 187
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object p2

    iget-object v1, p0, Llt/noframe/gpsfarmguide/dialogs/MeasuresDialogs$9;->val$measuringModel:Llt/noframe/gpsfarmguide/models/MeasuringModel;

    invoke-virtual {p2, v1}, Llt/noframe/gpsfarmguide/Data;->setCurrent_measuring(Llt/noframe/gpsfarmguide/models/MeasuringModel;)V

    .line 188
    invoke-static {}, Llt/noframe/gpsfarmguide/App;->getContext()Landroid/content/Context;

    move-result-object p2

    check-cast p2, Llt/noframe/gpsfarmguide/views/ActivityDrawer;

    invoke-virtual {p2, p1, v0}, Landroidx/fragment/app/FragmentActivity;->startActivityForResult(Landroid/content/Intent;I)V

    goto :goto_0

    .line 181
    :cond_2
    iget-object p1, p0, Llt/noframe/gpsfarmguide/dialogs/MeasuresDialogs$9;->val$fireAnalytics:Llt/noframe/gpsfarmguide/analytics/FireAnalytics;

    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/analytics/FireAnalytics;->sendFieldShareBtnClick()V

    .line 182
    iget-object p1, p0, Llt/noframe/gpsfarmguide/dialogs/MeasuresDialogs$9;->val$measuringModel:Llt/noframe/gpsfarmguide/models/MeasuringModel;

    invoke-static {p1}, Llt/noframe/gpsfarmguide/share/Share;->makeShare(Llt/noframe/gpsfarmguide/models/MeasuringModel;)V

    goto :goto_0

    .line 177
    :cond_3
    iget-object p1, p0, Llt/noframe/gpsfarmguide/dialogs/MeasuresDialogs$9;->val$fireAnalytics:Llt/noframe/gpsfarmguide/analytics/FireAnalytics;

    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/analytics/FireAnalytics;->sendFieldSelect()V

    .line 178
    iget-object p1, p0, Llt/noframe/gpsfarmguide/dialogs/MeasuresDialogs$9;->val$callback:Llt/noframe/gpsfarmguide/dialogs/MeasuresDialogs$ActionCallback;

    if-eqz p1, :cond_4

    const/4 p2, 0x0

    iget-object v0, p0, Llt/noframe/gpsfarmguide/dialogs/MeasuresDialogs$9;->val$measuringModel:Llt/noframe/gpsfarmguide/models/MeasuringModel;

    invoke-interface {p1, p2, v0}, Llt/noframe/gpsfarmguide/dialogs/MeasuresDialogs$ActionCallback;->actionChosen(ILlt/noframe/gpsfarmguide/models/MeasuringModel;)V

    :cond_4
    :goto_0
    return-void
.end method
